package com.tian.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tian.mapper.doctorMapper;
import com.tian.po.Doctor;

@Service
public class doctorService {
	@Autowired
	private doctorMapper doctorMapper;
	public Doctor doctorselect(int id){
		return doctorMapper.doctorselect(id);
	}
	public void insertdoctor(Doctor doctor){
		doctorMapper.insertdoctor(doctor);
	}
	public void updatedoctor(Doctor doctor){
		doctorMapper.updatedoctor(doctor);
	}
	public void deldoctor(int id){
		doctorMapper.deldoctor(id);
	}
}
